Package com.cisco.pt.ipc.sim.pdu
Interface STPFrame
- All Known Subinterfaces:
RstpFrame
- All Known Implementing Classes:
RstpFrameImpl,STPFrameImpl
-
Method Summary
Modifier and TypeMethodDescriptiongetFlags()intvoidsetBridgeId(STPId bridgeId) voidvoidsetForwardDelay(Short forwardDelay) voidsetHelloTime(Short helloTime) voidsetLengthValues(List<STPTypeLengthValue> lengthValues) voidvoidsetMessageAge(Short messageAge) voidsetMessageType(STPBpduType messageType) voidvoidsetProtocolId(Short protocolId) voidsetRootBridgeId(STPId rootBridgeId) voidsetRootPathCost(int rootPathCost) voidsetVersion(Byte version) Methods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
encodeTypeAndPayload, getFieldValue, getOrderedFieldNames, pduRead
-
Method Details
-
getProtocolId
Short getProtocolId()- Returns:
- Short Returns a Short
-
setProtocolId
- Parameters:
protocolId- Takes in a parameter of protocolId
-
getVersion
Byte getVersion()- Returns:
- Byte Returns a Byte
-
setVersion
- Parameters:
version- Takes in a parameter of version
-
getMessageType
STPBpduType getMessageType()- Returns:
- STPBpduType Returns a STPBpduType
-
setMessageType
- Parameters:
messageType- Takes in a parameter of messageType
-
getFlags
Byte getFlags()- Returns:
- Byte Returns a Byte
-
setFlags
- Parameters:
flags- Takes in a parameter of flags
-
getRootBridgeId
STPId getRootBridgeId()- Returns:
- STPId Returns a STPId
-
setRootBridgeId
- Parameters:
rootBridgeId- Takes in a parameter of rootBridgeId
-
getRootPathCost
int getRootPathCost()- Returns:
- int Returns a int
-
setRootPathCost
void setRootPathCost(int rootPathCost) - Parameters:
rootPathCost- Takes in a parameter of rootPathCost
-
getBridgeId
STPId getBridgeId()- Returns:
- STPId Returns a STPId
-
setBridgeId
- Parameters:
bridgeId- Takes in a parameter of bridgeId
-
getPortId
Short getPortId()- Returns:
- Short Returns a Short
-
setPortId
- Parameters:
portId- Takes in a parameter of portId
-
getMessageAge
Short getMessageAge()- Returns:
- Short Returns a Short
-
setMessageAge
- Parameters:
messageAge- Takes in a parameter of messageAge
-
getMaxAge
Short getMaxAge()- Returns:
- Short Returns a Short
-
setMaxAge
- Parameters:
maxAge- Takes in a parameter of maxAge
-
getHelloTime
Short getHelloTime()- Returns:
- Short Returns a Short
-
setHelloTime
- Parameters:
helloTime- Takes in a parameter of helloTime
-
getForwardDelay
Short getForwardDelay()- Returns:
- Short Returns a Short
-
setForwardDelay
- Parameters:
forwardDelay- Takes in a parameter of forwardDelay
-
getLengthValues
List<STPTypeLengthValue> getLengthValues()- Returns:
- List<STPTypeLengthValue> Returns a List<STPTypeLengthValue>
-
setLengthValues
- Parameters:
lengthValues- Takes in a parameter of lengthValues
-